.extra-field-files-grid {
  position: relative;
  margin-top: 16px;
  display: flex;
  flex-flow: column;
  width: 100%;
}

.extra-field-files-grid_loading {
  min-height: 32px;
  pointer-events: none;
  opacity: 0.5;
}

.extra-field-files-grid__images-grid {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  gap: 8px;

  &:not(:last-child) {
    margin-bottom: 8px;
  }
}

.extra-field-files-grid__documents-grid {
  display: flex;
  flex-flow: column;

  &:not(:last-child) {
    margin-bottom: 8px;
  }
}

.extra-field-files-document-grid__document-container {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
}

.extra-field-files-document-grid__document-container:last-child {
  margin-bottom: 0;
}

.extra-field-document {
  margin-right: 10px;
  font-family: Nunito, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: pointer;
  color: #fec336;
  transition: color 0.1s ease-in-out;
}

.document:hover {
  color: #e79a26;
}

.document_edit {
  color: #62625f;
}

.extra-field-document__delete-button {
  padding: 0;
  display: flex;
  cursor: pointer;
  background: none;
  border: none;
}

.delete-button {
  cursor: pointer;
  color: var(--pneumatic-color-black88);
  transition: 0.1s ease-in-out fill;

  &:hover {
    color: var(--pneumatic-color-link-hover);
  }
}

.images-list__image-container {
  position: relative;
  display: flex;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
}

.images-list__image-container:last-child {
  margin-right: 0;
}

.extra-field-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.extra-field-image__link {
  all: unset;
  width: 80px;
  height: 80px;
}

.extra-field-image__delete-button {
  all: unset;
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 0;
  display: flex;
}

.extra-filed-file__upload-button {
  width: 100%;
  height: 100%;
  background: inherit;
  border: none;
}

.extra-field-file__container {
  display: flex;
  flex-flow: column;
  width: 100%;
  height: 100%;
}

.extra-field-file__ref {
  position: absolute;
  z-index: -1;
  overflow: hidden;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
}

.extra-field-file__ref:focus + * .extra-field-file__input {
  /* stylelint-disable-next-line declaration-no-important */
  border-color: #979795 !important;
}

.extra-field-file__input {
  margin: 0;
  cursor: pointer;
}
